package cn.luischen.model;

<<<<<<< HEAD
import org.powermock.reflect.Whitebox;
import org.mockito.Mock;
import static org.junit.Assert.fail;
import org.junit.runner.RunWith;
import java.util.HashMap;
import java.util.ArrayList;
import org.mockito.MockitoAnnotations;
import com.alibaba.fastjson.JSONArray;
import org.junit.After;
import org.powermock.core.classloader.annotations.PrepareForTest;
import java.util.Map;
import static org.junit.Assert.assertEquals;
import org.powermock.modules.junit4.PowerMockRunner;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PowerMockIgnore;
import java.lang.reflect.Method;
import org.junit.rules.ExpectedException;
import org.mockito.InjectMocks;
import org.junit.Test;
import static org.junit.Assert.*;
import com.unitspirit.runtime.*;
import org.mockito.Mockito;
import java.util.List;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;
import org.junit.Rule;
import static org.junit.Assert.assertNotNull;
import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.*;
import static org.junit.Assert.assertTrue;
import com.alibaba.fastjson.parser.ParserConfig;

/**
* The class <code>ContentDomainTest</code> contains tests for the class <code>{@link ContentDomain}</code>.
* Copyright (c) 2020
* 
* @generatedBy UnitSpirit at 2021-09-07 17:51:52
* @version 1.0.20210903
*/

@PowerMockIgnore({ "javax.management.*" })
public class ContentDomain_getTitle_WGTest {

=======
import static org.junit.Assert.*;
import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.*;
import org.junit.Rule;
import org.junit.runner.RunWith;
import org.junit.rules.ExpectedException;
import org.junit.Test;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.core.classloader.annotations.PowerMockIgnore;
import org.powermock.modules.junit4.PowerMockRunner;
import org.powermock.reflect.Whitebox;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
import org.mockito.stubbing.Answer;
import java.lang.reflect.Method;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.TypeReference;
import com.alibaba.fastjson.parser.ParserConfig;
import java.util.Map;
import java.util.List;
import com.unitspirit.runtime.*;

/**
 * The class contains tests for the class cn.luischen.model.ContentDomain.
 *
 * @generatedBy UnitSpirit CreateTemplateTestFile4
 * @version 1.0.9.11 
 */
@PowerMockIgnore({ "javax.management.*" })
public class ContentDomain_getTitle_WGTest {
>>>>>>> 3b028d6f1d2dd25e613c470e379df4ff28f4935e
	@Rule
	public ExpectedException unitspirit_thrown = ExpectedException.none();

	/**
<<<<<<< HEAD
	* 测试方法初始化.
	* 
	* @throws Exception 
	*         if the initialization fails for some reason 
	*  
	* @generatedBy UnitSpirit at 2021-09-07 17:51:52
	*/
	@org.junit.Before
	public void setUp() throws Exception {
		try {
=======
	 * 测试方法初始化.
	 * 
	 * @throws Exception 
	 *         if the initialization fails for some reason 
	 *  
	 * @generatedBy UnitSpirit at 2021-12-06 21:50:28
	 */
	@org.junit.Before
	public void setUp() throws Exception {
		try {
			GlobalUnitInit.init();
			MockitoAnnotations.initMocks(this);
>>>>>>> 3b028d6f1d2dd25e613c470e379df4ff28f4935e
			ParserConfig.getGlobalInstance().setAutoTypeSupport(true);
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}

	/**
<<<<<<< HEAD
	* @date 2021-09-07 17:51:53
	* @see cn.luischen.model.ContentDomain#getTitle
	* @category auto generate by UnitSpirit  
	* @author UnitSpirit   
	*/
	@Test
	public void test_getTitle_20210722_100105_741_1_00() throws Throwable {
=======
	 * @date 2021-12-06 21:50:29
	 * @see cn.luischen.model.ContentDomain#getTitle
	 * @category auto generate by UnitSpirit  
	 */
	@Test
	public void test_getTitle_20211109_110224_047_1_00() throws Throwable {
>>>>>>> 3b028d6f1d2dd25e613c470e379df4ff28f4935e

		cn.luischen.model.ContentDomain unitspirit_fixture = new cn.luischen.model.ContentDomain();
		//成员变量设置
		Whitebox.setInternalState(unitspirit_fixture, "created", 1616027687);
		Whitebox.setInternalState(unitspirit_fixture, "modified", 0);
		Whitebox.setInternalState(unitspirit_fixture, "allowComment", 1);
		Whitebox.setInternalState(unitspirit_fixture, "title", "test5");
		Whitebox.setInternalState(unitspirit_fixture, "type", "photo");
		Whitebox.setInternalState(unitspirit_fixture, "content", "test5test5");
		Whitebox.setInternalState(unitspirit_fixture, "cid", 6);
		Whitebox.setInternalState(unitspirit_fixture, "status", "publish");

		//返回值定义 
		String result_expected = "test5";

		String unitspirit_result_d = "test5";
		unitspirit_fixture.setTitle(unitspirit_result_d);
		String unitspirit_result = unitspirit_fixture.getTitle();
		//getCaseAssertList 
		UnitAssert.assertEquals(result_expected, unitspirit_result);
	}
<<<<<<< HEAD

	/**
	* @date 2021-09-07 17:51:53
	* @see cn.luischen.model.ContentDomain#getTitle
	* @category auto generate by UnitSpirit  
	* @author UnitSpirit   
	*/
	@Test
	public void test_getTitle_20210722_100105_752_1_00() throws Throwable {

		cn.luischen.model.ContentDomain unitspirit_fixture = new cn.luischen.model.ContentDomain();
		//成员变量设置
		Whitebox.setInternalState(unitspirit_fixture, "created", 1607004465);
		Whitebox.setInternalState(unitspirit_fixture, "modified", 0);
		Whitebox.setInternalState(unitspirit_fixture, "allowComment", 1);
		Whitebox.setInternalState(unitspirit_fixture, "categories", "默认分类");
		Whitebox.setInternalState(unitspirit_fixture, "title", "test3");
		Whitebox.setInternalState(unitspirit_fixture, "type", "post");
		Whitebox.setInternalState(unitspirit_fixture, "content", "test3");
		Whitebox.setInternalState(unitspirit_fixture, "tags", "test3");
		Whitebox.setInternalState(unitspirit_fixture, "cid", 4);
		Whitebox.setInternalState(unitspirit_fixture, "status", "publish");

		//返回值定义 
		String result_expected = "test3";

		String unitspirit_result_d = "test3";
		unitspirit_fixture.setTitle(unitspirit_result_d);
		String unitspirit_result = unitspirit_fixture.getTitle();
		//getCaseAssertList 
		UnitAssert.assertEquals(result_expected, unitspirit_result);
	}

	/**
	* @date 2021-09-07 17:51:53
	* @see cn.luischen.model.ContentDomain#getTitle
	* @category auto generate by UnitSpirit  
	* @author UnitSpirit   
	*/
	@Test
	public void test_getTitle_20210722_100105_765_1_00() throws Throwable {

		cn.luischen.model.ContentDomain unitspirit_fixture = new cn.luischen.model.ContentDomain();
		//成员变量设置
		Whitebox.setInternalState(unitspirit_fixture, "created", 1606984674);
		Whitebox.setInternalState(unitspirit_fixture, "modified", 0);
		Whitebox.setInternalState(unitspirit_fixture, "allowComment", 1);
		Whitebox.setInternalState(unitspirit_fixture, "categories", "默认分类");
		Whitebox.setInternalState(unitspirit_fixture, "title", "test3");
		Whitebox.setInternalState(unitspirit_fixture, "type", "post");
		Whitebox.setInternalState(unitspirit_fixture, "content", "test3\r\ntest3");
		Whitebox.setInternalState(unitspirit_fixture, "tags", "test3");
		Whitebox.setInternalState(unitspirit_fixture, "cid", 3);
		Whitebox.setInternalState(unitspirit_fixture, "status", "publish");

		//返回值定义 
		String result_expected = "test3";

		String unitspirit_result_d = "test3";
		unitspirit_fixture.setTitle(unitspirit_result_d);
		String unitspirit_result = unitspirit_fixture.getTitle();
		//getCaseAssertList 
		UnitAssert.assertEquals(result_expected, unitspirit_result);
	}

	/**
	* @date 2021-09-07 17:51:53
	* @see cn.luischen.model.ContentDomain#getTitle
	* @category auto generate by UnitSpirit  
	* @author UnitSpirit   
	*/
	@Test
	public void test_getTitle_20210722_100105_774_1_00() throws Throwable {

		cn.luischen.model.ContentDomain unitspirit_fixture = new cn.luischen.model.ContentDomain();
		//成员变量设置
		Whitebox.setInternalState(unitspirit_fixture, "created", 1606983696);
		Whitebox.setInternalState(unitspirit_fixture, "modified", 1606983708);
		Whitebox.setInternalState(unitspirit_fixture, "allowComment", 1);
		Whitebox.setInternalState(unitspirit_fixture, "categories", "test1");
		Whitebox.setInternalState(unitspirit_fixture, "title", "test2");
		Whitebox.setInternalState(unitspirit_fixture, "type", "post");
		Whitebox.setInternalState(unitspirit_fixture, "content", "test2\r\ntest2");
		Whitebox.setInternalState(unitspirit_fixture, "tags", "test2");
		Whitebox.setInternalState(unitspirit_fixture, "cid", 2);
		Whitebox.setInternalState(unitspirit_fixture, "status", "publish");

		//返回值定义 
		String result_expected = "test2";

		String unitspirit_result_d = "test2";
		unitspirit_fixture.setTitle(unitspirit_result_d);
		String unitspirit_result = unitspirit_fixture.getTitle();
		//getCaseAssertList 
		UnitAssert.assertEquals(result_expected, unitspirit_result);
	}
=======
>>>>>>> 3b028d6f1d2dd25e613c470e379df4ff28f4935e
}
